home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
049a.dms
/
049a.adf
/
articles
/
nudge.asc
< prev
next >
Wrap
Text File
|
1993-09-09
|
3KB
|
108 lines
NUDGE NUDGE WINK WINK!
+-----------------------+
@1
RAM IT HOME:
-----------
If you intend to make use of the RAM DISK inside your compiled program
then unless you do this:
RM=Exist("RAM:")
it may not work. The line of code looks to see if there is already a RAM:
device created, if there is not will do it for you.
Also make sure you have the RAMDISK.DEVICE in DEVS on your boot disk.
@2
CALLING ALL PRINTERS:
---------------------
If you program refuses to print out properly you may not have your boot disk
set up correctly. Check you have these files in the correct drawers:
DEVS/system-configuration (set up to use your printer driver)
DEVS/printer.device
DEVS/parralel.device (Or serial.device if applicable, doubt it!)
DEVS/PRINTERS/your printer driver
@3
WARNING TO BOB:
--------------
Don't use DEL BOB or DEL SPRITE while you have bobs or sprites still active
as this will often crash Amos.
@2
ODDLY ENOUGH:
------------
To interrogate a variable to whether it is an odd or even number use this:
X=variable MOD 2
If X=1 Then Print "variable is odd": Else Print "variable is even"
@1
ADDING TO SUBTRACT:
------------------
You may have noticed that there is an ADD command in Amos but no SUB command.
This is because you can use the ADD command for subtraction as well as
addition:
ADD variable,amount ADD amount to the variable
ADD variable, -amount SUBTRACT amount from variable
@2
IT NEVER RAINS BUT IT POURS:
----------------------------
To delete a RAINBOW use RAINBOW DEL N
Where N is the number of the previously defined RAINBOW.
@3
BANK ON IT:
-----------
If during the development of your program you have instructions to LOAD
bobs, music or whatever then insert this line in first to save a lot of
wasted time loading in files that are already in memory:
If Length (Number of bank)=0 Then LOAD...........
@2
HELPING HAND:
-------------
If you want to detect for the user pressing the help key, then put this in
the right place(s) of your listing:
If Key State (95)
do your thang here
end if
@1
SPEED COPYING:
-------------
Tip: Only use co-ordinates divisable by 16 when using SCREEN COPY. This
doubles the speed.
@2
CENTRE FORWARD:
--------------
You can't use the CENTRE command on the TEXT instruction, but you can do it
like this:
T$="THE TEXT TO BE CENTRED"
A=len(t$)
text screen width/2-(a*8/2),screen height/2,T$
@3
MORE NUDGES AND WINKS NEXT ISSUE, SEND YOURS IN OR FOREVER BE CONDEMNED TO
A LIFE OF USING AMIGA BASIC.